package com.example.mapper;

import com.example.entity.Results;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface ResultMapper {

    @Select("select * from result where student_name = #{studentName}")
    Results selectByName(String studentName);

    List<Results> selectAll(Results results);

    void insert(Results results);

    void update(Results results);

    @Delete("delete from `result` where student_id=#{studentId}")
    void delete(Integer id);

}
